//
//  YXAuxiliaryViewHandler.m
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import "YXAuxiliaryViewHandler.h"
#import "YXToastView.h"
#import "YXLoadingView.h"

@implementation YXAuxiliaryViewHandler

/// 展示正确情况的提示
- (void)yx_showCorrectToastWithContainer:(UIView *)container text:(NSString *)text {
    [container yx_showHookToast:text];
}
/// 展示错误情况的提示
- (void)yx_showIncorrectToastWithContainer:(UIView *)container text:(NSString *)text {
    [container yx_showForkToast:text];
}
/// 隐藏所有提示
- (void)yx_hideToastWithContainer:(UIView *)container {
    [container yx_hideToast];
}

/// 展示加载视图
- (void)yx_showLoadingWithContainer:(UIView *)container {
    [container yx_showLoading];
}
/// 展示带进度的加载视图
- (void)yx_showLoadingWithContainer:(UIView *)container progress:(CGFloat)progress{
    [container yx_showLoadingWithProgress:progress];
}
/// 展示带文字的视图
- (void)yx_showLoadingWithContainer:(UIView *)container text:(NSString *)text {
    [container yx_showLoadingWithText:text click:nil];
}
/// 隐藏所有视图
- (void)yx_hideLoadingWithContainer:(UIView *)container {
    [container yx_hideLoading];
}

@end
